package com.fowo.api.model.db;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 组织 导入导出辅助模型 */
@Data
public class DbOrganizationExcelPo {

  @NotBlank(message = "编码不能为空")
  @Size(max = 50, message = "编码长度不能超过20")
  @ExcelProperty(value = "*编码")
  private String code;

  @NotBlank(message = "名称不能为空")
  @Size(max = 50, message = "名称长度不能超过20")
  @ExcelProperty(value = "*名称")
  private String name;

  @NotBlank(message = "形态不能为空")
  @ExcelProperty(value = "*形态")
  private String orgForm;

  @Size(max = 50, message = "联系人长度不能超过20")
  @ExcelProperty(value = "联系人")
  private String orgContacts;

  @Size(max = 50, message = "联系电话长度不能超过20")
  @ExcelProperty(value = "联系电话")
  private String orgPhone;

  @Size(max = 50, message = "地址长度不能超过20")
  @ExcelProperty(value = "地址")
  private String orgAddress;

  @Size(max = 50, message = "状态长度不能超过20")
  @ExcelProperty(value = "状态")
  private String stauts;
}
